<!DOCTYPE html>
<html>
<head>
    <title>储物间数据查看</title>
<#include "../common/common.ftl"/>
</head>
<body>
<div class="layui-fluid">
    <div class="layui-card">
        <div class="layui-card-header">一、储物间基本信息</div>
        <div class="layui-card-body">
            <div class="layui-form-item">
                <div class="layui-col-xs6">
                    项目名称：${(azProject.projectName)!}
                </div>
                <div class="layui-col-xs6">
                    幢&#160;&#160;&#160;&#160;&#160;&#160;&#160;号：${(storageRoom.buildNum)!}
                </div>
            </div>
            <div class="layui-form-item">
                <div class="layui-col-xs6">
                    楼层户号：${(storageRoom.floor)!}层${(storageRoom.houseNum)!}号
                </div>
                <div class="layui-col-xs6">
                    建筑面积：${(storageRoom.buildArea)!}㎡
                </div>
            </div>
        <#if storageRoom.houseStatus==2 && storageRoom.chooseHouseDate??>
            <div class="layui-form-item">
                <div class="layui-col-xs6">
                    选房时间：${storageRoom.chooseHouseDate?string('yyyy-MM-dd')}
                </div>
                <div class="layui-col-xs6">
                    选房操作人：${(storageRoom.choosePerson)!}
                </div>
            </div>
        </#if>
            <div class="layui-form-item">
                <div class="layui-col-xs12">
                    备&#160;&#160;&#160;&#160;&#160;&#160;&#160;注：${(storageRoom.memo)!}
                </div>
            </div>

        </div>
    </div>
<#if storageRoom.houseStatus==2 && storageRoom.contract??>
    <div class="layui-card">
        <div class="layui-card-header"><span
                class="jmdf-color-red">协议编号：【${(storageRoom.contract.contractCode)!}】被征收人：【${(storageRoom.contract.name)!}】</span>
        </div>
        <div class="layui-card-header">二、所选储物间对应房源及产权人信息<span class="jmdf-color-red">【如果没有设置产权人则默认为被征收人】</span></div>
        <div class="layui-card-body">
            <div class="layui-form-item">
                <div class="layui-col-xs6">
                    项目名称：${(azProject.projectName)!}
                </div>
                <div class="layui-col-xs6">
                    幢&#160;&#160;&#160;&#160;&#160;&#160;&#160;号：${(storageRoom.house.buildNum)!}
                </div>
            </div>
            <div class="layui-form-item">
                <div class="layui-col-xs6">
                    户号：${(storageRoom.house.houseNumStr)!}号
                </div>
                <div class="layui-col-xs6">
                    房源类型：${(houseTypeMap[storageRoom.house.houseType].name)!}
                </div>
            </div>
            <div class="layui-form-item">
                <div class="layui-col-xs6">
                    建筑面积：${(storageRoom.house.buildArea)!}㎡
                </div>
                <div class="layui-col-xs6">
                    备&#160;&#160;&#160;&#160;&#160;&#160;&#160;注：${(storageRoom.house.memo)!}
                </div>
            </div>
            <#if (buyHousePersonList?size>0)>
                <#list buyHousePersonList as buyHousePerson>
                    <div class="layui-form-item">
                        <div class="layui-col-xs6">
                            产权人姓名：${(buyHousePerson.name)!}
                        </div>
                        <div class="layui-col-xs6">
                            身份证号：${(buyHousePerson.idCard)!}
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <div class="layui-col-xs6">
                            联系方式：${(buyHousePerson.tel)!}
                        </div>
                        <div class="layui-col-xs6">
                            备&#160;&#160;&#160;&#160;&#160;&#160;&#160;注：${(buyHousePerson.memo)!}
                        </div>
                    </div>
                </#list>
            <#else>
                <div class="layui-form-item">
                    <div class="layui-col-xs6">
                        产权人姓名：${(storageRoom.contract.name)!}
                    </div>
                    <div class="layui-col-xs6">
                        身份证号：${(storageRoom.contract.idCard)!}
                    </div>
                </div>
                <div class="layui-form-item">
                    <div class="layui-col-xs6">
                        联系电话：${(storageRoom.contract.tel)!}
                    </div>
                </div>
            </#if>
        </div>
    </div>
<div class="layui-card">
    <div class="layui-card-header">三、其他选房信息</div>
    <div class="layui-card-body">
        <table class="layui-table">
            <tr class="layui-bg-gray">
                <th style="text-align: center;width: 8%">序号</th>
                <th style="text-align: center;width: 20%">幢号</th>
                <th style="text-align: center;width: 20%">户号</th>
                <th style="text-align: center;width: 20%">房源类型</th>
                <th style="text-align: center">建筑面积</th>
            </tr>
            <#assign index=0/>
            <#if houseList??>
                <#list houseList as houses>
                    <tr>
                        <td style="text-align: center;">${index+1}</td>
                        <td style="text-align: center;">${(houses.azProject.projectName)!}</td>
                        <td style="text-align: center;">${(houses.houseNumStr)!}</td>
                        <td style="text-align: center;">${(houseTypeMap[houses.houseType].name)!}</td>
                        <td style="text-align: center;">${(houses.buildArea)!}【<span
                                class="jmdf-color-red">${(houses.propertyArea)!}</span>+<span
                                class="jmdf-color-red">${(houses.poolArea)!}</span>】
                        </td>
                    </tr>
                </#list>
            </#if>
            <#if storageRoomList??>
                <#list storageRoomList as storageRooms>
                    <tr>
                        <td style="text-align: center;">${index+1}</td>
                        <td style="text-align: center;">${(storageRooms.azProject.projectName)!}</td>
                        <td style="text-align: center;">${(storageRooms.houseNumStr)!}</td>
                        <td style="text-align: center;">储物间</td>
                        <td style="text-align: center;">${(storageRooms.buildArea)!}</td>
                    </tr>
                </#list>
            </#if>
            <#if carLotList??>
                <#list carLotList as carLots>
                    <tr>
                        <td style="text-align: center;">${index+1}</td>
                        <td style="text-align: center;">${(carLots.azProject.projectName)!}</td>
                        <td style="text-align: center;">${(carLots.houseNumStr)!}</td>
                        <td style="text-align: center;">${(carLotTypeMap[carLots.carLotType?c].name)}</td>
                        <td style="text-align: center;">${(carLots.buildArea)!}</td>
                    </tr>
                </#list>
            </#if>
        </table>
    </div>
</#if>
</div>
</body>
</html>